import {RouterModule, Routes} from '@angular/router';
import {NgModule} from '@angular/core';
import {DrawManagementComponent} from './draw-management.component';

const routes: Routes = [
    {path: '', component: DrawManagementComponent,
        children: [
            {path: '', redirectTo: 'dra-goods', pathMatch: 'full'},
            {path: 'dra-goods', loadChildren: './dra-goods/dra-goods.module#DraGoodsModule'},
            {path: 'dra-free-lottery', loadChildren: './dra-free-lottery/dra-free-lottery.module#DraFreeLotteryModule'},
            {path: 'dra-integral-lottery', loadChildren: './dra-integral-lottery/dra-integral-lottery.module#DraIntegralLotteryModule'},
            // this line is use for generator path, don't remove
            {path: 'dra-participate-member', loadChildren: './dra-participate-member/dra-participate-member.module#DraParticipateMemberModule'},
        ]
    }
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})
export class DrawManagementRoutingModule {
}
